package com.atguigu.eduservice.mapper;

import com.atguigu.eduservice.entity.EduCourse;
import com.atguigu.eduservice.entity.dto.CoursePublishDto;
import com.atguigu.eduservice.entity.frontdto.CourseWebDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-12-25
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 返回最终所需要的数据
     * @param courseId
     * @return
     */
    CoursePublishDto getPublishCourseInfo(String courseId);

    /**
     * 根据id查询课程基本信息
     * @param courseId
     * @return
     */
    CourseWebDto getBaseCourseInfo(String courseId);
}
